package com.hd.homework0412.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("product_img")
public class ProductImg {
    @TableField("id")
    private Integer id;
    @TableField("item_id")
    private Integer itemId;
    @TableField("url")
    private String url;
    @TableField("sort")
    private Integer sort;
    @TableField("is_main")
    private Integer isMain;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("created_time")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("updated_time")
    private Date updateTime;
}
